package swu.core;

public class ResponseOperator
{
    private Boolean success;
    private Object data;

    public static ResponseOperator wrap(Object object)
    {
        return ResponseOperator.wrap(true, object);
    }

    public static ResponseOperator wrap(Boolean success, Object object)
    {
        ResponseOperator wrapper = new ResponseOperator();
        wrapper.setSuccess(success);
        wrapper.setData(object);
        return wrapper;
    }

    public void setData(Object object)
    {
        this.data = object;
    }

    public Object getData()
    {
        return this.data;
    }

    public Boolean getSuccess()
    {
        return success;
    }

    public void setSuccess(Boolean success)
    {
        this.success = success;
    }
}
